import { get } from "../../utils/request";
Page({
  data: {
    article: {},
  },
  async onLoad(options) {
    let id = options.id;
    let { article } = await get("/article", {
      data: {
        id,
      },
    });
    this.setData({
      article,
    });
  },
  preview() {
    wx.previewImage({
      urls: [this.data.article.poster],
    });
  },
});
